package asteroids.model.programs.parsing.statements;

import asteroids.model.programs.parsing.expressions.E;

public class Assignment extends S {

	public Assignment(int line, int column, String variable, E rhs) {
		super(line, column);
		setVariable(variable);
		setRhs(rhs);
	}


	public void setVariable(String var){
		this.variableName = var;
	}

	public String getVariable(){
		return this.variableName;
	}

	public void setRhs(E rhs){
		this.rhs = rhs;
	}

	public E getRhs(){
		return rhs;
	}

	private String variableName;
	private E rhs;


	@Override
	public void execute(ExecuteManager executeManager) {
		executeManager.execute(this);
	}
}
